﻿using Interfaces.Filters;
using Interfaces.Models;
using Interfaces.Providers;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Unity;

namespace NewsDataProvider
{
    public class NewsDataProviderModule : IModule
    {
        private readonly IUnityContainer _container;

        public NewsDataProviderModule(IUnityContainer container)
        {
            _container = container;
        }
         
        public void Initialize()
        {
            _container.RegisterType<INewsDataProvider<IFeed, IFilter>, RssNewsDataProvider>();
        }
    }
}
